package org.example.auth.service;

import org.example.common.base.domain.UserDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @version 1.0.0
 * @className: ILoginUserService
 * @description: 获取登录用户信息
 * @author: LiJunYi
 * @create: 2023/4/3 16:51
 */
@FeignClient(value = "security-system")
public interface ILoginUserService {

    /**
     * 查询用户
     *
     * @param username 用户名
     * @return {@link UserDto}
     */
    @GetMapping("/admin/loadByUsername")
    UserDto loadUserByUsername(@RequestParam("username") String username);
}
